#!/bin/bash

awk 'BEGIN {printf "<?php\n\nreturn array(\n\n"} {if(NF==0) printf "\n" ; else printf "array(\"id\"=>%s, \"name\"=>\"%s\", \"endurance\"=>%d, \"strength\"=>%d, \"dexterity\"=>%d, \"spirit\"=>%d, \"award\"=>%d),\n", $1, $3, $6*100, $7*100, $8*100, $9*100, $10*100} END{printf "\n);\n\n?>"}'
